|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectga.core.individual.TemplateIndividualFactory<T>
T
- The generic type of individuals.public class TemplateIndividualFactory<T extends IIndividual<T>>
This factory creates new individuals by cloning a template.
Field Summary | |
---|---|
private T |
template
|
Constructor Summary | |
---|---|
TemplateIndividualFactory(T template)
Creates a new factory with the template. |
Method Summary | |
---|---|
T |
newIndividual(GAContext context)
Creates a new individual in the given context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final T extends IIndividual<T> template
Constructor Detail |
---|
public TemplateIndividualFactory(T template)
template
- The individual template that will be cloned.Method Detail |
---|
public T newIndividual(GAContext context)
IIndividualFactory
newIndividual
in interface IIndividualFactory<T extends IIndividual<T>>
context
- The context.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |